package com.hy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("exchanges")
public class Exchange implements Serializable {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long userId;
    
    private Long productId;
    
    private Integer points;
    
    private Integer status; // 0-待处理 1-已完成 2-已取消
    
    private String address;
    
    private String remark;
    
    private LocalDateTime createTime;
    
    private LocalDateTime updateTime;
} 